import request from '@/utils/request'

// 查询监测项列表
export function listDispatchMonitoringItem(query) {
  return request({
    url: '/system/dispatchMonitoringItem/list',
    method: 'get',
    params: query
  })
}

// 查询监测项详细
export function getDispatchMonitoringItem(monitoringItemId) {
  return request({
    url: '/system/dispatchMonitoringItem/' + monitoringItemId,
    method: 'get'
  })
}

// 新增监测项
export function addDispatchMonitoringItem(data) {
  return request({
    url: '/system/dispatchMonitoringItem',
    method: 'post',
    data: data
  })
}

// 修改监测项
export function updateDispatchMonitoringItem(data) {
  return request({
    url: '/system/dispatchMonitoringItem',
    method: 'put',
    data: data
  })
}

// 删除监测项
export function delDispatchMonitoringItem(monitoringItemId) {
  return request({
    url: '/system/dispatchMonitoringItem/' + monitoringItemId,
    method: 'delete'
  })
}
